<html>
<head><meta charset="utf-8"><title>Debuggable Macro Expansions compiler-team#386 · t-compiler/major changes · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/index.html">t-compiler/major changes</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/Debuggable.20Macro.20Expansions.20compiler-team.23386.html">Debuggable Macro Expansions compiler-team#386</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216973128"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/Debuggable%20Macro%20Expansions%20compiler-team%23386/near/216973128" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> triagebot <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/Debuggable.20Macro.20Expansions.20compiler-team.23386.html#216973128">(Nov 17 2020 at 07:33)</a>:</h4>
<p>A new proposal has been announced: <a href="https://github.com/rust-lang/compiler-team/issues/386">Debuggable Macro Expansions #386</a>. It will be announced at the next meeting to try and draw attention to it, but usually MCPs are not discussed during triage meetings. If you think this would benefit from discussion amongst the team, consider proposing a design meeting.</p>



<a name="216979608"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/Debuggable%20Macro%20Expansions%20compiler-team%23386/near/216979608" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/Debuggable.20Macro.20Expansions.20compiler-team.23386.html#216979608">(Nov 17 2020 at 09:08)</a>:</h4>
<p>What about pretending that macro invocations are inlined function calls in the dwarf debuginfo?</p>



<a name="217073810"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/Debuggable%20Macro%20Expansions%20compiler-team%23386/near/217073810" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/Debuggable.20Macro.20Expansions.20compiler-team.23386.html#217073810">(Nov 17 2020 at 22:45)</a>:</h4>
<p>I like that idea. How would it apply with recursive macros?</p>



<a name="217073921"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/Debuggable%20Macro%20Expansions%20compiler-team%23386/near/217073921" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/Debuggable.20Macro.20Expansions.20compiler-team.23386.html#217073921">(Nov 17 2020 at 22:46)</a>:</h4>
<p>I think we can pretend every macro definition is its own function which gets inlined in many places</p>



<a name="217073927"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/Debuggable%20Macro%20Expansions%20compiler-team%23386/near/217073927" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> tmandry <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/Debuggable.20Macro.20Expansions.20compiler-team.23386.html#217073927">(Nov 17 2020 at 22:46)</a>:</h4>
<p>and treat any expansion of that macro as the same "function"</p>



<a name="234480474"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/233931-t-compiler/major%20changes/topic/Debuggable%20Macro%20Expansions%20compiler-team%23386/near/234480474" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> apiraino <a href="https://rust-lang.github.io/zulip_archive/stream/233931-t-compiler/major-changes/topic/Debuggable.20Macro.20Expansions.20compiler-team.23386.html#234480474">(Apr 14 2021 at 11:11)</a>:</h4>
<p>MCP closed for inactivity</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>